//---------------------------------------------------------------------------


#pragma hdrstop

#include "TCheck.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)


__fastcall TCheck::TCheck()
{
	TTrack T;
	Name = "none";
//	Tracks.push_back(T);
//	return;
}

TCheck & __fastcall TCheck::operator = (const TCheck & t)
{
	Name = t.Name;
//	SwitchesID = t.SwitchesID;
//	CurvesID = t.CurvesID;
//	RetardersID = t.RetardersID;
//	CtrRetardersID = t.CtrRetardersID;
//	ArrestersID = t.ArrestersID;
//	TrackRetardersID = t.TrackRetardersID;
//	ProfileID = t.ProfileID;
//	WeathersID = t.WeathersID;
//	CutsID = t.CutsID;
	Setting = t.Setting;
	SerialNumber = t.SerialNumber;
	return *this;
}

AnsiString __fastcall TCheck::TrackSerialNumber(const int TrackIndex)
{
	return Tracks[TrackIndex]->SerialNumber;
}
/*
void __fastcall TCheck::GetAllID(TElements * Elements)
{
//	TElementID TrckID, SwitchesID, CurveID, RetarderID, CtrRetarderID, ArresterID, TrackRetaderID;
//	int ProfileID, WeatherID;
//	TID ID;
//	ID.

}   */


__fastcall TChecks::TChecks()
{
	Name = "none";
//	return;
}

TChecks & __fastcall TChecks::operator = (const TChecks & t)
{
	int i, q;
	q = t.size();
	clear();
	for (i = 0; i < q; i++) {
		push_back(t[i]);
	}
	return *this;
}

TCheck & __fastcall TChecks::GetSelected(void)
{
	return at(SelectedIndex);
}

void __fastcall TChecks::SetSelected(const int Index)
{
	SelectedIndex = Index;
	return;
}

